package org.findbugs.report.entity;

import java.util.List;

import org.dom4j.Document;

public class Summary {
    
    List<PackageStats> packageStats;

    public static Summary getSummary(Document findbugsDocument) {
        Summary summary = new Summary();
        summary.setPackageStats(PackageStats.getPackageStats(findbugsDocument));
        return summary;
    }
    
    public List<PackageStats> getPackageStats() {
        return packageStats;
    }

    public void setPackageStats(List<PackageStats> packageStats) {
        this.packageStats = packageStats;
    }

}
